import * as React from "react";
import * as ReactDOM from "react-dom";

import "./Back.less";


export interface BackProps {

}

export interface State {

}

export default class Back extends React.Component<BackProps, State> {
    //默认属性
    static readonly defaultProps: BackProps = {};

    constructor(props: BackProps) {
        super(props);
        //默认状态
        this.state = {};
    }

    //组件挂载后回调
    componentDidMount() {
        document.title = "";

    }

    render() {
        return <div className="Back" onClick={() => {
            console.log('back');
            history.back()
        }}>
            <i className="iconfont icon-zuo"/>
        </div>
    }
}
